from Progress_bar import *
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
import time

class ProgressBarWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)
        self.setWindowFlag(QtCore.Qt.FramelessWindowHint)
        self.setAttribute(QtCore.Qt.WA_TranslucentBackground)
        self.ui.pushButton.clicked.connect(self.progress_begin)
        self.show()

    def progress_begin(self):
        for i in range(101):
            time.sleep(0.05)
            self.ui.progressBar.setValue(i)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = ProgressBarWindow()
    sys.exit(app.exec_())